import request from '@/utils/request'

// 查询留言列表
export function listMessage() {
  return request({
    url: '/message',
    method: 'get'
  })
}

// 回复/发表留言
export function publishMessage(parentId, content) {
  return request({
    url: '/message',
    method: 'post',
    data: {
      parentId: parentId,
      content: content
    }
  })
}
